<<<<<<< HEAD
/*
 * @Date: 2019-05-31 20:35:48
 * @Author: Ryan Huang
 * @Description:
 */
=======
>>>>>>> 5ff4299df15cebcc96b503c1bef32f6520030e85
package main

import (
	"fmt"
	"io/ioutil"
<<<<<<< HEAD
	"my/http/config"
=======
	"my/go_draft/http/config"
>>>>>>> 5ff4299df15cebcc96b503c1bef32f6520030e85
	"net/http"
	"strings"
)

func main() {
	url := config.Url + "/post?husband=hwang&wife=chenyu"
	contentType := config.ContentTypePost
	response, _ := http.Post(url, contentType, strings.NewReader("husband=hwang&wife=chenyu"))
	defer response.Body.Close()
	bodyContent, _ := ioutil.ReadAll(response.Body)
	fmt.Println(string(bodyContent))
}
